package net.llz.service;

import net.llz.enums.CouponCategoryEnum;
import net.llz.exception.BizException;
import net.llz.request.NewUserCouponRequest;
import net.llz.util.JsonData;

import java.util.Map;

public interface CouponService {

    /**
     * 优惠卷分页服务
     * @param page
     * @param size
     * @return
     */
    Map<String,Object> pageCouponActivity(int page,int size);

    /**
     * 添加优惠卷服务
     * @param couponId
     * @param category
     * @return
     */
    JsonData addCoupon(long couponId, CouponCategoryEnum category) throws BizException;

    JsonData initNewUserCoupon(NewUserCouponRequest newUserCouponRequest);
}
